package lab02.test15;
//接口支持多继承，可以在关键字extends后面跟多个接口列表，中间用逗号分开
public class Graduate implements StudentInterface,TeacherInterface{
    String name;
    String sex;
    int age;
    double fee;
    double pay;

    public  Graduate(){}

    public Graduate(double fee,double pay){
        this.fee =fee;
        this.pay = pay;
    }
    @Override
    public void setFee() {
          this.fee = fee;
    }

    @Override
    public double getFee() {
          return fee;
    }

    @Override
    public void setPay() {
           this.pay = pay;
    }

    @Override
    public double getPay() {
          return pay;
    }
}
